package com.axend.aerosense.pay.entity;

import com.axend.aerosense.base.bean.BaseBean;

public class VipMoneyCardBean extends BaseBean {
    //vip开通类型 1:  单月价格 2：单季价格 3：一年价格4：连续包月价格 5：连续包季价格 6：连续包年价格
    private int vipType;//开通的vip类型
    private String vipDescription;//卡片Title 如：1个月，3个月
    private double originalPrice;//原价
    private double discountPrice;//折扣价/连续的价格
    private String goodsIdentifiers;  //商品ID

    public int getVipType() {
        return vipType;
    }

    public void setVipType(int vipType) {
        this.vipType = vipType;
    }

    public String getVipDescription() {
        return vipDescription;
    }

    public void setVipDescription(String vipDescription) {
        this.vipDescription = vipDescription;
    }

    public double getOriginalPrice() {
        return originalPrice;
    }

    public void setOriginalPrice(double originalPrice) {
        this.originalPrice = originalPrice;
    }

    public double getDiscountPrice() {
        return discountPrice;
    }

    public void setDiscountPrice(double discountPrice) {
        this.discountPrice = discountPrice;
    }

    public String getGoodsIdentifiers() {
        return goodsIdentifiers;
    }

    public void setGoodsIdentifiers(String goodsIdentifiers) {
        this.goodsIdentifiers = goodsIdentifiers;
    }

    @Override
    public String toString() {
        return "VipMoneyCardBean{" +
                "vipType=" + vipType +
                ", vipDescription='" + vipDescription + '\'' +
                ", originalPrice=" + originalPrice +
                ", discountPrice=" + discountPrice +
                ", goodsIdentifiers='" + goodsIdentifiers + '\'' +
                '}';
    }

    public static boolean checkVipType(int type){
        return type >= 1 && type <= 6;
    }

    public static boolean isSubscribe(int type){
        return type >= 4 && type <= 6;
    }
}
